package com.multicampus.simplewiki.model;

import org.springframework.orm.jpa.support.JpaDaoSupport;

public class UserDAOJPA extends JpaDaoSupport implements UserDAO{

	public User find(String id) {
		return (User) getJpaTemplate().find(User.class, id);
	}

	public User add(User user) {
		getJpaTemplate().persist(user);
		return user;
	}
}
